/*
 * @Desc:
 * @author cheegon
 * @date 2024/6/6  下午4:54
**/
import { apiPost, apiGet } from '../config/apiConfig'

/**
 * 上传文件
 * @param params
 * @returns {*}
 */
export const reqUpload = (params) => apiPost('/minio/upload', params)
/**
 * 上传图片
 * @param params
 * @returns {*}
 */
export const reqUploadImage = (params) => apiPost('/minio/upload', params)

/**
 * 上传文件
 * @param params
 * @returns {*}
 */
export const reqUploadFile = (params) => apiPost('/minio/upload', params)


/**
 * 下载文件
 * @param params
 * @returns {*}
 */
export const reqDownloadFile = (params) => apiPost('/minio/download', params)

/**
 * 预览文件
 * @param params
 * @returns {*}
 */
export const reqPreviewFile = (params) => apiPost('/minio/preview', params)
/**
 * 下载Excel
 * @param params
 * @returns {*}
 */
export const reqDownloadExcel = (params) => apiPost('/minio/download/excel', params)
